import React, { FC } from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'
import { Login, Home, City, My, ChartRoom} from 'views/index'

// 展示组件
const RouterView = () => {
  return <Switch>
    <Route path='/login' component={Login}></Route>
    <Route path='/home' component={Home}></Route>
    <Route path='/city' component={City}></Route>
    <Route path='/my' component={My}></Route>
    <Route path='/chart' component={ChartRoom}></Route>

    <Redirect to="/login" from="/"/>
  </Switch>
}

export default RouterView;
